package com.lanhai.mind.enums;
 

/**
 * 点位类型
 * @author zhengwei
 *
 */
public enum DotTypeEnum {
	Trans(1),
	Power(2),
	Wait(3), 
	Decide(4),
	TransOut(5), 
	Estimate(6), 
	QrBefore(7),
	Route(8);
	
	DotTypeEnum(int i ) { 
		type=i; 
	}
	
 
	private int type;

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	
 

	public static DotTypeEnum getParkTypeEnum(int b) {
		DotTypeEnum as = null;
    	switch (b) {
    	case 1:
    		as=DotTypeEnum.Trans;
    		break;
    	case 2:
    		as=DotTypeEnum.Power;
    		break;
    	case 3:
    		as=DotTypeEnum.Wait;
    		break;
    	case 4:
    		as=DotTypeEnum.Decide;
    		break;
    	case 5:
    		as=DotTypeEnum.TransOut;
    		break;
    	case 6:
    		as=DotTypeEnum.Estimate;
      	case 7:
    		as=DotTypeEnum.QrBefore;
      	case 8:
    		as=DotTypeEnum.Route;
    	default:
    		as=DotTypeEnum.Wait;
    	}
    	 
    	return as;
	}
}